html, body {
    height: 100%;
}

#app-body {
    height: 100%;
    /* max-width: 970px; */
}

.nav-bar {
    width: 80px;
    height: 100%;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        padding-top: 0;
        height: calc(3.2rem + env(safe-area-inset-bottom));
        flex-shrink: 0;
        border-top: 1px solid #ccc;
        background-color: #fff;
        z-index: 1001;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

.nav-bar a {
    text-decoration: none;
}

.bar-item {
    margin-top: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    border-radius: .5rem;
}

@media (max-width: 768px) {
    .bar-item {
        margin-left: 1.8rem;
        margin-right: 1.8rem;
    }
}

.bar-item:hover,
.bar-item.selected {
    background-color: #d7dfea;
}

.bar-item .icon {
    padding: 8px;
    color: #667d99;
}

.chat-bar {
    height: 100%;
    width: 340px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .chat-bar {
        width: 100%;
        height: calc(100% - 3.2rem - env(safe-area-inset-bottom));
    }
}


.searin-input {
    height: 52px;
    /* border-bottom: 1px solid var(--bs-border-color); */
}

.searin-input input {
    padding-left: 32px;
    background-color: #f6f6f7;
    border: 0;
    font-size: .9375rem;
}

.searin-input:before {
    position: relative;
    width: 36px;
    margin-right: -36px;
    font-family: "iconfont" !important;
    content: "\e63e";
    text-align: center;
    opacity: 0.5;
}

.chat-list {
    height: calc(100% - 52px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
}

.list-item {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: .5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}


.list-item:hover {
    background-color: #f6f6f7;
}

.list-item a {
    display: inline-block;
    padding: 0 .5rem;
    font-size: 0.9375rem;
    color: var(--bs-body-color);
    text-align: justify;
    text-decoration: none;
}

.item-count {
    font-size: .75rem;
    text-align: right;
    min-width: 20px;
}

.chat-box {
    position: relative;
    height: 100%;
    width: calc(100% - 300px);
    max-width: 600px;
}

.chat-header {
    height: 52px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 0 1rem;
    border-bottom: 1px solid #ddd;
}

.chat-body {
    position: relative;
    height: calc(100% - 252px);
    /* height: calc(100% - 52px); */
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.chat-footer {
    height: 200px;
    border-top: 1px solid #ddd;
    overflow: hidden;
}

.fs-15 {
    font-size: 0.9375rem !important;
}

.fs-14 {
    font-size: 0.875rem !important;
}

.fs-12 {
    font-size: 0.75rem !important;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 3rem;
}


/* 滚动条宽度 */
::-webkit-scrollbar {
    width: 0;
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: transparent;
}

/* 滚动条手柄 */
::-webkit-scrollbar-thumb {
    background: #ddd;
}

/* 鼠标悬停时滚动条手柄 */
::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}